package com.cloud.pole.msg.model.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class SmsSend implements Serializable {
    /**
     * 消息ID
     */
    private Integer msgId;

    /**
     * 短信内容
     */
    private String msgContent;

    private Date sendTime;

    /**
     * 发送状态(发送状态 -2:接收失败 -1:提交失败 0:审核中 1:开始发送 2:提交成功 3:接收成功)
     */
    private Short sendStatus;

    /**
     * 提交说明
     */
    private String sendResult;

    /**
     * 子号
     */
    private String subCode;

    /**
     * 手机号
     */
    private String mobileNo;

    /**
     * 状态报告
     */
    private String reportNote;

    /**
     * 状态说明
     */
    private String busiNote;

    private static final long serialVersionUID = 1L;

    public Integer getMsgId() {
        return msgId;
    }

    public void setMsgId(Integer msgId) {
        this.msgId = msgId;
    }

    public String getMsgContent() {
        return msgContent;
    }

    public void setMsgContent(String msgContent) {
        this.msgContent = msgContent;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Short getSendStatus() {
        return sendStatus;
    }

    public void setSendStatus(Short sendStatus) {
        this.sendStatus = sendStatus;
    }

    public String getSendResult() {
        return sendResult;
    }

    public void setSendResult(String sendResult) {
        this.sendResult = sendResult;
    }

    public String getSubCode() {
        return subCode;
    }

    public void setSubCode(String subCode) {
        this.subCode = subCode;
    }

    public String getMobileNo() {
        return mobileNo;
    }

    public void setMobileNo(String mobileNo) {
        this.mobileNo = mobileNo;
    }

    public String getReportNote() {
        return reportNote;
    }

    public void setReportNote(String reportNote) {
        this.reportNote = reportNote;
    }

    public String getBusiNote() {
        return busiNote;
    }

    public void setBusiNote(String busiNote) {
        this.busiNote = busiNote;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SmsSend other = (SmsSend) that;
        return (this.getMsgId() == null ? other.getMsgId() == null : this.getMsgId().equals(other.getMsgId()))
            && (this.getMsgContent() == null ? other.getMsgContent() == null : this.getMsgContent().equals(other.getMsgContent()))
            && (this.getSendTime() == null ? other.getSendTime() == null : this.getSendTime().equals(other.getSendTime()))
            && (this.getSendStatus() == null ? other.getSendStatus() == null : this.getSendStatus().equals(other.getSendStatus()))
            && (this.getSendResult() == null ? other.getSendResult() == null : this.getSendResult().equals(other.getSendResult()))
            && (this.getSubCode() == null ? other.getSubCode() == null : this.getSubCode().equals(other.getSubCode()))
            && (this.getMobileNo() == null ? other.getMobileNo() == null : this.getMobileNo().equals(other.getMobileNo()))
            && (this.getReportNote() == null ? other.getReportNote() == null : this.getReportNote().equals(other.getReportNote()))
            && (this.getBusiNote() == null ? other.getBusiNote() == null : this.getBusiNote().equals(other.getBusiNote()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMsgId() == null) ? 0 : getMsgId().hashCode());
        result = prime * result + ((getMsgContent() == null) ? 0 : getMsgContent().hashCode());
        result = prime * result + ((getSendTime() == null) ? 0 : getSendTime().hashCode());
        result = prime * result + ((getSendStatus() == null) ? 0 : getSendStatus().hashCode());
        result = prime * result + ((getSendResult() == null) ? 0 : getSendResult().hashCode());
        result = prime * result + ((getSubCode() == null) ? 0 : getSubCode().hashCode());
        result = prime * result + ((getMobileNo() == null) ? 0 : getMobileNo().hashCode());
        result = prime * result + ((getReportNote() == null) ? 0 : getReportNote().hashCode());
        result = prime * result + ((getBusiNote() == null) ? 0 : getBusiNote().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", msgId=").append(msgId);
        sb.append(", msgContent=").append(msgContent);
        sb.append(", sendTime=").append(sendTime);
        sb.append(", sendStatus=").append(sendStatus);
        sb.append(", sendResult=").append(sendResult);
        sb.append(", subCode=").append(subCode);
        sb.append(", mobileNo=").append(mobileNo);
        sb.append(", reportNote=").append(reportNote);
        sb.append(", busiNote=").append(busiNote);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}